package it.poste.il.compensatore.dao;

import java.util.List;

import it.poste.il.compensatore.entities.BaseEntity;
import it.poste.il.compensatore.exceptions.daoExceptions.EntityNotFoundException;

public interface BaseEntityDao<T extends BaseEntity> {
    T loadById(Long entityId) throws EntityNotFoundException;
    List<T> loadAll();
    T save(T entity);
    void update(T entity);
    void delete(T entity);
}
